package com.wj.blog.mapper;

import com.wj.blog.pojo.Music;
import com.wj.blog.utils.Page;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface MusicMapper {
    void save(Music music);

    void delete(Integer id);

    void update(Music music);

    Music getById(Integer id);

    List<Music> getByPage(Page<Music> page);

    Integer getCount(Page<Music> page);

    List<Music> getList(Page<Music> page);
}
